Skip to content

Conversation

@iamgabrielma
Copy link
Contributor

@iamgabrielma iamgabrielma commented Jul 8, 2025

Part of WOOMOB-751

Description

When using the app in large accessibility sizes, both order details and order list have shown some wonkiness, which among other issues cuts/truncates the POS badge.

This PR addresses the order details side (only) by adjusting SummaryTableViewCell's xib file hugging and compression priorities for the subtitle label for the date and the sales channel label, so now it does not truncate but both are kept on screen.

Before After
Screenshot 2025-07-08 at 17 32 20 Screenshot 2025-07-08 at 17 33 02

I've attempted to adjust order details as well in this PR but is quite messier, and while it leaves us 80% there is still not quite right. I'll give it another go using a different approach separately via a HostingTableViewCell and rewriting the cell in SwiftUI to see if that is better.

Testing information

  • If no POS orders have been processed yet in your test store after we added the created_via property, go to the POS tab and pay for a POS order.
  • Navigate to orders, and tap on the POS order, you should see the badge in order details.
  • Increase the font size and observe that both date and POS badge are visible in order details to the right (still needs work on the order list to the left).
Screen.Recording.2025-07-08.at.13.05.58.mov

In phone:

salesChannelLabel had a higher hugging priority, preferring to stay as small as its content allows -> resists growing while subtitleLabel (within the same horizontal stack) does, truncating the badge on larger accessibility sizes.

We apply lower hugging to the “other” label (that’s the subtitle one), as well as more compression resistance to the label that shouldn’t be compressed (that’s the pos label)
@iamgabrielma iamgabrielma added type: task An internally driven task. feature: order details Related to order details. feature: POS labels Jul 8, 2025
@iamgabrielma iamgabrielma added this to the 22.8 milestone Jul 8, 2025
@iamgabrielma iamgabrielma marked this pull request as ready for review July 8, 2025 10:46
@iamgabrielma iamgabrielma requested a review from joshheald July 8, 2025 10:47
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jul 8, 2025

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Numberpr15880-e31dd43
Version22.7
Bundle IDcom.automattic.alpha.woocommerce
Commite31dd43
Installation URL24rcb9o59qkeo
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Base automatically changed from task/WOOMOB-709-make-sales-channel-filter to trunk July 8, 2025 11:25
Copy link
Contributor

@joshheald joshheald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work, but the tall POS badge when the order date goes to two lines is strange.

You can fix it by changing the stack view's alignment: it's currently Fill, but Top or Center are probably better choices here.

@dangermattic
Copy link
Collaborator

1 Warning
⚠️ This PR is assigned to the milestone 22.8. This milestone is due in less than 2 days.
Please make sure to get it merged by then or assign it to a milestone with a later deadline.

Generated by 🚫 Danger

@iamgabrielma
Copy link
Contributor Author

You can fix it by changing the stack view's alignment: it's currently Fill, but Top or Center are probably better choices here.

Thanks for the tip, aligning .top looks much better when the date happens to be extra long 👍

@iamgabrielma iamgabrielma enabled auto-merge July 10, 2025 04:18
@iamgabrielma iamgabrielma merged commit ee5934c into trunk Jul 10, 2025
13 checks passed
@iamgabrielma iamgabrielma deleted the task/WOOMOB-751-a11y-improvements-pos-badges branch July 10, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: order details Related to order details. feature: POS type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants